/*
 * InputReader.h
 *
 *  Created on: Oct 17, 2012
 *      Author: David Kadlecek, Ales Fiser
 */

#ifndef INPUTMATRIXHOLDER_H_
#define INPUTMATRIXHOLDER_H_

#include "general.h"

class InputMatrixHolder {
private:
	int numberOfNodes;
	int* nodeDegree;
	bool* matrix;
	void initNewMatrix(int numOfNodes);
	void calculateNodeDegrees();

public:
	InputMatrixHolder();
	virtual ~InputMatrixHolder();
	void readFromFile(string pathToFile);
	bool* getMatrix();
	int getNumberOfNodes();
	int getNodeDegree(int node);
	bool getVlaue(int row, int column);
};

#endif /* INPUTMATRIXHOLDER_H_ */
